﻿@model IEnumerable<AlmaDatabase.Shop>
@{
    ViewContext.Controller.ViewBag.Breadcrumb.Enter("Points de vente");
}
<div class="fullcol">
    <h1>
        Points de vente</h1>
    <table>
        <tr>
            <th>
            </th>
            <th>
                Nom
            </th>
            <th>
                Adresse
            </th>
            <th>
                Description
            </th>
            <th>
            </th>
        </tr>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @if (item.ImgUrl != null)
                    {
                        <img alt="Product Illustration" class="productImg" src="@Url.Content(item.ImgUrl)" />
                    }
                    else
                    {
                        <img alt="Product Illustration" class="productImg" src="@Url.Content("~/Content/images/unavailable.gif")" />
                    }
                </td>
                <td>
                    @item.Name
                </td>
                <td>
                    @item.Address
                    @item.Zipcode
                    @item.Town
                    @item.Country
                </td>
                <td>
                    @item.Description
                </td>
                <td>
                    @Html.ActionLink("Voir", "Show", new { id = item.ID })
                </td>
            </tr>
        }
    </table>
</div>
